package ml.uuku.oschub.util;

import android.content.Context;
import android.content.Intent;

import ml.uuku.oschub.bean.SimpleBackPage;
import ml.uuku.oschub.ui.SimpleBackActivity;

/**
 * @author <a href=http://my.oschina.net/uuku>uuku</a>
 * @version V0.1
 */
public class UIHelper {

    public static void showSimpleBack(Context context, SimpleBackPage page) {
        Intent intent = new Intent(context, SimpleBackActivity.class);
        intent.putExtra(SimpleBackActivity.BUNDLE_KEY_PAGE, page.getValue());
        context.startActivity(intent);
    }
}
